package org.ymjava.medical.db.AllPackage.mapper;

import org.apache.ibatis.annotations.Param;
import org.ymjava.medical.db.AllPackage.entity.NurseQuestion;
import org.ymjava.medical.db.AllPackage.entity.QuestionBank;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author zhy
 * @email ${email}
 * @date 2020-03-30 13:12:23
 */

public interface NurseQuestionMapper extends Mapper<NurseQuestion> {

    public List<NurseQuestion> queryQuestionAndOption(@Param("classId") Integer classId);

    public List<NurseQuestion> queryWrongQuestion(@Param("classId") Integer classId, @Param("userId") Integer userId);

    public List<NurseQuestion> queryCompletedQuetion(@Param("classId") Integer classId, @Param("userId") Integer userId);

    public List<NurseQuestion> queryNoCompletedQuetion(@Param("classId") Integer classId, @Param("userId") Integer userId);

    public List<NurseQuestion> query_type(@Param("classId") Integer classId, @Param("question_type") Integer question_type);

    public List<NurseQuestion> query_Judge(@Param("classId") Integer classId);

    public List<NurseQuestion> query_Favorite(@Param("classId") Integer classId,@Param("userId") Integer userId);

    public List<NurseQuestion> query_bank(@Param("classId") Integer classId,@Param("bankId") Integer bankId);


    public List<NurseQuestion> query_mock_question(@Param("userId") Integer userId, @Param("num") Integer num, @Param("type") Integer type);

}
